package net.sxnic.jhitem.itempeople.action;

import net.sxnic.jhitem.itempeople.ItemPeople;

import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @Description:  研究人员编辑action类
 * @Author 刘强 lq8152@163.com
 * @CreateDate: 2014/3/12
 * @UpdateDate:   
 * @Version 1.0
 */
 
public class Edit extends ItemPeopleAction{
	private static final long serialVersionUID = 1L;

	private static Logger logger = LoggerFactory.getLogger(Edit.class);

	private String peopleId;
	
	public String execute() throws Exception {
		  setJspPath(id);
		  peopleList =peopleManager.findListByBaseinfoId(id);
          if(StringUtils.isNotBlank(peopleId))
        	  itemPeople = itemPeopleManager.get(peopleId);
          else
        	  itemPeople = new ItemPeople();
		  
		// 返回指定JSP
		return SUCCESS;
	}

	public String getPeopleId() {
		return peopleId;
	}

	public void setPeopleId(String peopleId) {
		this.peopleId = peopleId;
	}
    
}
